defalut:
	go build -o vmrobot

clean:
	rm -f vmrobot *.rpm

install: 
	-\cp -r default.ini $(PREFIX)/etc/vmrobot/default.ini
	-\cp -r vmrobot $(PREFIX)/usr/bin/vmrobot
	-\cp -r vmrobot.service $(PREFIX)/usr/lib/systemd/system/vmrobot.service

rpm: install
	rpmbuild -bb vmrobot.spec

release:rpm
	ssh root@192.168.115.237 "mkdir -p /var/www/html/release/vmrobot"
	scp *.rpm root@192.168.115.237:/var/www/html/release/vmrobot
	
